
# 切片
lst = [90, 89, 28, 39, 91, 32, 99, 66]
# lst = [开始位置:截止位置:取数规则]
# [89, 28, 39]
print(lst[1:4:1])
# [39, 91, 32]
print(lst[3:6:1])
# [90, 28, 91, 99]
print(lst[0:7:2])
# [32, 91, 39]
print(lst[-3:-6:-1])